package com.zxj.schoolxianyu.service;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.zxj.schoolxianyu.dao.userDataDao;
import com.zxj.schoolxianyu.entity.userData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class userDataUpService {

    @Autowired(required = false)
    private userDataDao userDataDao;

    public String userDataUp(userData userdata) {
        EntityWrapper<userData> wrapper = new EntityWrapper<>();
        wrapper.eq("username", userdata.username);
        userDataDao.update(userdata, wrapper);
        return "success";
    }
}